tr
  td
    - organ.depth.downto(1) do |i|
      span style="margin-left: 30px;"
    = link_to organ.name, organ_path(organ)
  td
    = link_to "编辑", edit_organ_path(organ), :class => "btn btn-primary"
    = link_to "添加下级", new_organ_path(:id => organ.id), :class => "btn btn-info"    
    = link_to "删除", organ_path(organ), :class => "btn btn-danger", :method => :delete, :confirm => "你确定要删除吗？"

- organ.children.each do |child|
  = render :partial => "child", :locals => {:organ => child}
